<%= render 'sidebar' %>

<h1><%= @product.title %></h1>
<p>
	<%= image_tag(@product.image) %>
</p>
<p>
	<strong><%= t('.price_chf') %>: <%=  number_to_currency(@product.price, :unit => "CHF") %></strong><br />
	<%= t('.price_euro') %>: <%=  number_to_currency(@product.euro_price, :unit => "€") %><br />
	<%= @product.description %>
	<%= button_to t('global_button_add_to_cart'), line_items_path(product_id: @product.id), remote: true, :class => 'btn' %>
</p>

<%= button_to t('.download_pdf'), request.fullpath + ".pdf", :class => 'btn' %>

<br />

<h2><%= t('.title_addons') %></h2>
<% if @product.addons.each do |addon| %>
	<%= render (addon)  %>
<% end.empty? %>
	<div class="alert">
		<%= t('.no_addons') %>
	</div>
<% end %>